package top.pengdong.pictureShare.tweet.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.pengdong.pictureShare.common.model.PageUtils;
import top.pengdong.pictureShare.common.model.R;
import top.pengdong.pictureShare.tweet.entity.PsTweetEntity;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * 文章表
 *
 * @author chenshun
 * @email pengshi12138@outlook.com
 * @date 2022-04-25 16:55:46
 */
public interface PsTweetService extends IService<PsTweetEntity> {

    PageUtils queryPage(Map<String, Object> params);

	String createQR_code(Long id);

	Long saveWithCode(PsTweetEntity psTweet);

	R getTweetInfo(Long id);

	R updateTweet(PsTweetEntity psTweet);

	R deleteTweet(Long tweetId);

	R getViewShow(Integer currPage, Integer limit);

	Boolean updateNumById(PsTweetEntity psTweet);

	R getTweetCount(Long aid);

	Object getTypeTweets(String hotSweet, Integer currPage, Integer limit);

	PageUtils getUserTweets(Long uid, Integer page, Integer limit);

	R addTweet(PsTweetEntity psTweet, HttpServletRequest request, String userId);

	R getCategoryList(Integer category, Integer currPage, Integer limit);

	PsTweetEntity getTweetUserInfo(PsTweetEntity psTweet);

	R searchTweet(String key, Integer page, Integer limit);

	void getTweetImages(List<PsTweetEntity> list);

	R shareWithCode(Long tweetId);

	List getCountList();

	R getUserStatus(Long[] aid);
}


